import Vue from 'vue'
// import Vant from 'vant';
// import 'vant/lib/index.css';
// Vue.use(Vant);
import {
    Collapse, CollapseItem,
    Swipe, SwipeItem,
    Tab, Tabs, Row, Col,
    Tabbar, TabbarItem,
    DropdownMenu, DropdownItem,
    Popup, Cell, Button, Lazyload, Toast, Dialog, ImagePreview, NavBar, Sticky,
    List,Field,Search,NoticeBar,SwipeCell 
} from 'vant'

Vue.use(Lazyload,{
    preLoad: 1.3,
    error:  require('./assets/img/jz.png'),
    loading:  require('./assets/img/jz.png'),
    attempt: 1,
    filter: {
        progressive (listener, options) {
        },
        webp (listener, options) {
          //listener.src = "/api/img?fileName="+listener.src;
        }
      }
  });
Vue.use(Toast);
Vue.use(Dialog);
Vue.use(ImagePreview);
Vue.use(NavBar);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Row);
Vue.use(Col);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Sticky);
Vue.use(Button);
Vue.use(Cell);
Vue.use(Popup);
Vue.use(Collapse).use(CollapseItem)
    .use(DropdownMenu).use(DropdownItem)
    .use(List)
    .use(Field)
    .use(Search)
    .use(NoticeBar)
    .use(SwipeCell )